export type ActionType = 'navigation' | 'socket'

export type LineType = {
  text: string;
  color: string;
}

export type LinesType = LineType[]

export type LinesBlock = {
  type: 'lines';
  lines: LinesType;
}

export type OptionType = {
  text: string;
  action: () => void;
  actionType: ActionType;
  params?: any;
}

export type OptionBlockSetting = {
  activeIndex: number;
}

export type OptionBlock = {
  type: 'options';
  options: OptionType[];
  optionBlockSetting?: OptionBlockSetting;
}

export type Context = Array<LinesBlock | OptionBlock>
